package errorType

var (
	OK                  = &ErrCode{Code: 0, Message: "success!"}
	InternalServerError = &ErrCode{1001, "Internal server error!"}
	ParamBindError      = &ErrCode{1002, "字段错误!"}
	ParamBind2Error     = &ErrCode{1002, "字段2错误!"}
	DataBaseError       = &ErrCode{1003, "Database opr fail "}
	AuthFailError       = &ErrCode{1004, "bcrypt password fail "}
	IsRegisterError     = &ErrCode{1005, "此用户名已被占用，请重新输入"}
	PasswordAuthError   = &ErrCode{1006, "密码错误，请重新输入"}
	NoSuchUserError     = &ErrCode{1007, "用户名未注册，请先注册"}
	GreTokenError       = &ErrCode{1008, "token 生成失败"}
	ParseTokenError     = &ErrCode{1009, "token解析失败"}
	TokenTimeOverError  = &ErrCode{1010, "token过期"}
	PicPutError         = &ErrCode{1011, "图片上传失败"}
	IsFavoriteError     = &ErrCode{1012, "已收藏"}
	Success             = &ErrCode{1013, "true"}
)
